﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserInfo.aspx.cs" Inherits="WebCommon_UserInfo"
    Theme="skin_control" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户名</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">

        function GetPro(supName) {
            var s = '<%=_target %>';
            if (opener.document.getElementById(s) != null) {
                window.opener.document.getElementById(s).value = supName;
                self.close();
            }
            self.close();
        }

 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
    </asp:ScriptManager>
    <div>
        <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table border="1" width="700" cellpadding="0" cellspacing="0" style="background-color: #dedede;
                    height: 583px;">
                    <tr>
                        <td style="text-align: center">
                            <table border="1" cellpadding="0" cellspacing="0" width="700" style="background-color: #dedede;
                                height: 550px;">
                                <tr>
                                    <td style="text-align: left;" colspan="3">
                                        <asp:TextBox ID="txtUserName" runat="server" OnTextChanged="txtUserName_TextChanged"></asp:TextBox>
                                        <asp:Button ID="btnQuery" runat="server" OnClick="btnQuery_Click" Text="查询" />
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top" align="left" style="background-color: #ffffff; height: 340px">
                                        <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Height="100%" Width="300px">
                                            <asp:TreeView ID="tvDepartment" runat="server" ShowLines="True" ExpandDepth="1" OnSelectedNodeChanged="tvDepartment_SelectedNodeChanged"
                                                SkinID="treeviewSkin" Height="100%" Width="100%">
                                            </asp:TreeView>
                                        </asp:Panel>
                                    </td>
                                    <td align="center" rowspan="3" valign="top" style="width: 50px">
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="选择" SkinID="buttonSkin"
                                            Visible="False" Width="10px" /><br />
                                        <br />
                                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/btncheck.gif"
                                            OnClick="ImageButton1_Click" /><br />
                                        <br />
                                        <br />
                                        <br />
                                        <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/btncancel.gif"
                                            OnClick="ImageButton2_Click" /><br />
                                        <asp:Button ID="btnRemove" runat="server" OnClick="btnRemove_Click" Text="移除" SkinID="buttonSkin"
                                            Visible="False" Width="10px" />
                                    </td>
                                    <td align="left" valign="top" rowspan="3" style="width: 300px; height: 450px">
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                            <ContentTemplate>
                                                <asp:ListBox ID="lbxUserNameOK" runat="server" Height="100%" Width="100%"></asp:ListBox>
                                                <br />
                                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:ImageButton ID="ibtnUp" runat="server" ImageUrl="~/images/up.gif"
                                                    OnClick="ibtnUp_Click" />
                                                &nbsp;&nbsp; &nbsp;&nbsp;
                                                <asp:ImageButton ID="ibtnDown" runat="server" ImageUrl="~/images/down.gif" OnClick="ibtnDown_Click" />
                                            </ContentTemplate>
                                            <Triggers>
                                                <asp:AsyncPostBackTrigger ControlID="lbxUserNameShow" EventName="SelectedIndexChanged" />
                                            </Triggers>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                                <tr style="height: 26px">
                                    <td valign="top">
                                        该部门下的员工
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top" align="left" style="width: 300px;">
                                        <asp:Panel ID="Panel2" runat="server" Height="120px" ScrollBars="Auto" Width="100%">
                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <asp:ListBox ID="lbxUserNameShow" runat="server" Height="100%" OnSelectedIndexChanged="lbxUserNameShow_SelectedIndexChanged"
                                                        AutoPostBack="True" Width="100%"></asp:ListBox>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="tvDepartment" EventName="SelectedNodeChanged" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                            <asp:Button ID="btnOk" runat="server" Text="提交" OnClick="btnOk_Click" SkinID="buttonSkin" />
                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                            <asp:Button ID="btnReset" runat="server" Text="清空" OnClick="btnReset_Click1" SkinID="buttonSkin" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
